@extends('index.user.index')

@section('navbar')
    <ol class="breadcrumb">
        <li><a href="{{url('/')}}">首页</a></li>
        <li><a href="{{url('/user')}}">用户中心</a></li>
        <li class="active">我的信息</li>
    </ol>
@endsection

@section('user-content')
    <form class="form-horizontal" method="POST" action="{{ url('/user/edit') }}">
        <input type="hidden" name="_token" value="{{ csrf_token() }}">

        <div class="form-group">
            <label for="name" class="col-sm-2 control-label">姓名</label>

            <div class="col-sm-3">
                <input type="text" name="name" class="form-control" placeholder="姓名" value="{{$user->name}}">
            </div>
        </div>
        <div class="form-group">
            <label for="name" class="col-sm-2 control-label">手机号码</label>

            <div class="col-sm-3">
                <input type="text" name="phone" class="form-control" placeholder="手机号码" value="{{$user->phone}}">
            </div>
        </div>
        <div class="form-group">
            <label for="name" class="col-sm-2 control-label">联系地址</label>

            <div class="col-sm-8">
                <input type="text" class="form-control"  name="address" placeholder="联系地址" value="{{$user->address}}">
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-success radius">保存</button>
            </div>
        </div>
    </form>
@endsection